﻿#region Using statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
#endregion

namespace Rectangular.Model.Sprites
{
    class Circle : Sprite
    {
        /* The image used to represent the player */
        private static Texture2D image;

        /// <summary>
        /// Constructs a new player
        /// </summary>
        public Circle()
        {
        }

        /// <summary>
        /// Constructs a new player
        /// </summary>
        /// <param name="position">The position of the player on screen</param>
        public Circle(Vector2 position) : base(position)
        {
        }

        /// <summary>
        /// The image used to represent the circle
        /// </summary>
        public static Texture2D Image
        {
            set { image = value; }
        }

        /// <summary>
        /// Draws the circle
        /// </summary>
        /// <param name="spriteBatch"></param>
        public override void Draw(SpriteBatch spriteBatch)
        {
            if (image != null)
            {
                spriteBatch.Draw(image, this.Position, this.SpriteColor);
            }
        }
    }
}